<!--#include("./header.html")-->
<!--%import("css/forum.css")-->
<!--%import("filter/insert_functional_info.xml")-->
<!--%import("js/forum_admin.js")-->

{$setup_content}

<div class="displayFunctionalInfo">
<form action="./" method="post" onsubmit="return procFilter(this, insert_functional_info)" enctype="multipart/form-data">
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="mid" value="{$module_info->mid}" />
<input type="hidden" name="act" value="{Context::get('act')}" />
<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
<input type="hidden" name="use_anonymous" value="{$module_info->use_anonymous}" />
<input type="hidden" name="allow_anonymous_search" value="{$module_info->allow_anonymous_search}" />
<input type="hidden" name="consultation" value="{$module_info->consultation}" />
<input type="hidden" name="title" value="{$module_info->title}" />
<input type="hidden" name="comment" value="{$module_info->comment}" />
<input type="hidden" name="admin_mail" value="{$module_info->admin_mail}" />
<input type="hidden" name="header_text" value="{$module_info->header_text}" />
<input type="hidden" name="footer_text" value="{$module_info->footer_text}" />
	
    <h4 class="xeAdmin triggerFunctionalInfo"><a href="#">{$lang->functional_info}</a></h4>
    <table cellspacing="0" class="rowTable containerFunctionalInfo">
    <tr>
        <th scope="row"><div>{$lang->order_target}</div></th>
        <td>
            <select name="order_target">
                <!--@foreach($order_target as $key => $val)-->
                <option value="{$key}" <!--@if($module_info->order_target == $key)-->selected="selected"<!--@end-->>{$val}</option>
                <!--@end-->
            </select>

        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->order_type}</div></th>
        <td>
            <select name="order_type">
                <option value="asc" <!--@if($module_info->order_type != 'desc')-->selected="selected"<!--@end-->>{$lang->order_asc}</option>
                <option value="desc" <!--@if($module_info->order_type == 'desc')-->selected="selected"<!--@end-->>{$lang->order_desc}</option>
            </select>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->list_count}</div></th>
        <td>
            <input type="text" name="list_count" value="{$module_info->list_count?$module_info->list_count:20}"  class="inputTypeText" />
            <p>{$lang->about_list_count}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->search_list_count}</div></th>
        <td>
            <input type="text" name="search_list_count" value="{$module_info->search_list_count?$module_info->search_list_count:20}"  class="inputTypeText" />
            <p>{$lang->about_search_list_count}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->page_count}</div></th>
        <td>
            <input type="text" name="page_count" value="{$module_info->page_count?$module_info->page_count:10}"  class="inputTypeText" />
            <p>{$lang->about_page_count}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->except_notice}</div></th>
        <td>
            <input type="checkbox" name="except_notice" value="Y" <!--@if($module_info->except_notice!='N')-->checked="checked"<!--@end--> />
            <p>{$lang->about_except_notice}</p>
        </td>
    </tr>
    <tr>
        <th colspan="2" class="button">
            <span class="button black strong"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
            <span class="button"><input type="button" value="{$lang->cmd_back}" onclick="history.back(); return false;" /></span>
        </th>
	</tr>
    </table>
    <script>
	jQuery("h4.triggerFunctionalInfo").click(function () {
	jQuery("table.containerFunctionalInfo").fadeToggle("100");
	});    
	</script>
    
</form>
</div>

<h4 class="xeAdmin">{$lang->cmd_list_setting}</h4>
<p class="summary">{$lang->about_list_config}</p>

<div class="targetItem">
    <strong>{$lang->list_target_item}</strong>
    <select size="{count($extra_vars)}" name="targetItem" id="targetItem" ondblclick="doInsertItem(); return false;">
    <!--@foreach($extra_vars as $key => $val)-->
    <option value="{$key}">{$val->name}</option>
    <!--@end-->
    </select>
</div>

<div class="displayButton">
    <a href="#" onclick="doInsertItem(); return false;" class="buttonSet buttonRight"><span>{$lang->cmd_insert}</span></a><br />
    <a href="#" onclick="doDeleteItem(); return false;" class="buttonSet buttonLeft"><span>{$lang->cmd_delete}</span></a><br />
    <a href="#" onclick="doMoveUpItem(); return false;" class="buttonSet buttonUp"><span>{$lang->cmd_move_up}</span></a><br />
    <a href="#" onclick="doMoveDownItem(); return false;" class="buttonSet buttonDown"><span>{$lang->cmd_move_down}</span></a>
</div>

<div class="displayItem">
    <strong>{$lang->list_display_item}</strong>
    <select size="{count($extra_vars)}" name="displayItem" id="displayItem" ondblclick="doDeleteItem();">
    <!--@foreach($list_config as $key => $val)-->
    <option value="{$key}">{$val->name}</option>
    <!--@end-->
    </select>

    <div class="gap1">
        <span class="button black strong"><button onclick="doSaveListConfig('{$module_srl}'); return false;" type="button">{$lang->cmd_save}</button></span>
    </div>
</div>

